/* 基本样式 */
body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  margin: 0;
  padding: 20px;
}

.comment {
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  width: 300px;
  margin-bottom: 20px;
  overflow: hidden; /* 避免内容溢出 */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.comment-header {
  padding: 10px;
  background-color: #f9f9f9;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
}

.comment-author {
  font-weight: bold;
}

.comment-time {
  color: #888;
  font-size: 12px;
}

.comment-body {
  padding: 10px;
  max-height: 0px; /* 初始状态下，限制高度 */
  overflow: hidden; /* 隐藏超出部分 */
  transition: max-height 0.3s ease-out; /* 平滑过渡 */
}

.comment-body.expanded {
  max-height: none; /* 展开后，不限制高度 */
}

.comment-body p {
  margin: 0;
}